package kiwi.assist.dev.guieditor {
	import com.demonsters.debugger.MonsterDebugger;

	import org.aswing.AsWingManager;

	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;

	/**
	 * gui编辑器
	 * @author zhangming.luo
	 */
	public class GuiEditor extends Sprite {
		private var context : AppContext;

		public function GuiEditor() {
			addEventListener(Event.ADDED_TO_STAGE, handleAdded);
		}

		private function handleAdded(event : Event) : void {
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			AsWingManager.initAsStandard(this);
			context = new AppContext(this);
			MonsterDebugger.initialize(this);
		}
	}
}
